Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

murmurhash3js

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

murmurhash3js

A javascript implementation of MurmurHash3's x86 hashing algorithms.(Browser&Server)

  • 3.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
271K
increased by0.39%
Maintainers
1
Weekly downloads
 
Created

What is murmurhash3js?

The murmurhash3js npm package is a JavaScript implementation of the MurmurHash3 algorithm, which is a non-cryptographic hash function suitable for general hash-based lookup. It is known for its speed and efficiency.

What are murmurhash3js's main functionalities?

Hashing a string

This feature allows you to hash a string using the MurmurHash3 algorithm. The code sample demonstrates how to hash the string 'example string' and print the resulting hash value.

const murmurhash3js = require('murmurhash3js');
const hash = murmurhash3js.x86.hash32('example string');
console.log(hash);

Hashing a string with a seed

This feature allows you to hash a string with a specified seed value. The code sample demonstrates how to hash the string 'example string' with the seed value 12345 and print the resulting hash value.

const murmurhash3js = require('murmurhash3js');
const hash = murmurhash3js.x86.hash32('example string', 12345);
console.log(hash);

Hashing a string to 128-bit hash

This feature allows you to hash a string to a 128-bit hash value using the MurmurHash3 algorithm. The code sample demonstrates how to hash the string 'example string' and print the resulting 128-bit hash value.

const murmurhash3js = require('murmurhash3js');
const hash = murmurhash3js.x64.hash128('example string');
console.log(hash);

Other packages similar to murmurhash3js

Keywords

FAQs

Package last updated on 03 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc